.class public Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;
.super Lcom/bitauto/autoeasy/BaseActivity;
.source "BbsDetailActivity.java"


# instance fields
.field private final FGID:Ljava/lang/String;

.field private final TID:Ljava/lang/String;

.field private final TITLE1:Ljava/lang/String;

.field private text01:Landroid/widget/TextView;

.field private text02:Landroid/widget/TextView;

.field private text03:Landroid/widget/TextView;

.field private url:Ljava/lang/String;

.field private webView:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 18
    invoke-direct {p0}, Lcom/bitauto/autoeasy/BaseActivity;-><init>()V

    .line 20
    const-string v0, "title1"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->TITLE1:Ljava/lang/String;

    .line 21
    const-string v0, "tid"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->TID:Ljava/lang/String;

    .line 22
    const-string v0, "fgid"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->FGID:Ljava/lang/String;

    .line 18
    return-void
.end method


# virtual methods
.method public finish()V
    .locals 1

    .prologue
    .line 79
    iget-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->webView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->clearHistory()V

    .line 80
    invoke-super {p0}, Lcom/bitauto/autoeasy/BaseActivity;->finish()V

    .line 81
    return-void
.end method

.method public initView()V
    .locals 8

    .prologue
    .line 38
    const v6, 0x7f030025

    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->setLayout(I)V

    .line 39
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->setTitleContent()V

    .line 41
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v6

    const-string v7, "title1"

    invoke-virtual {v6, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 42
    .local v5, title:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v6

    const-string v7, "tid"

    invoke-virtual {v6, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 43
    .local v3, tid:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v6

    const-string v7, "fgid"

    invoke-virtual {v6, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 44
    .local v1, fgid:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v6

    const-string v7, "auther"

    invoke-virtual {v6, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 45
    .local v0, auther:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v6

    const-string v7, "time"

    invoke-virtual {v6, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 46
    .local v4, time:Ljava/lang/String;
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    .line 47
    .local v2, sb:Ljava/lang/StringBuffer;
    const-string v6, "http://m.bitauto.com/g/topic.aspx?forumid="

    invoke-virtual {v2, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v6

    invoke-virtual {v6, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v6

    const-string v7, "&topicid="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v6

    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 48
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->url:Ljava/lang/String;

    .line 50
    const v6, 0x7f0b01a7

    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    iput-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->text01:Landroid/widget/TextView;

    .line 51
    const v6, 0x7f0b01a8

    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    iput-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->text02:Landroid/widget/TextView;

    .line 52
    const v6, 0x7f0b01a9

    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    iput-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->text03:Landroid/widget/TextView;

    .line 53
    const v6, 0x7f0b01b7

    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/webkit/WebView;

    iput-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->webView:Landroid/webkit/WebView;

    .line 55
    iget-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->text01:Landroid/widget/TextView;

    invoke-virtual {v6, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 56
    iget-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->text02:Landroid/widget/TextView;

    invoke-virtual {v6, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 57
    iget-object v6, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->text03:Landroid/widget/TextView;

    invoke-virtual {v6, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 59
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0
    .parameter "savedInstanceState"

    .prologue
    .line 31
    invoke-super {p0, p1}, Lcom/bitauto/autoeasy/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 33
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->initView()V

    .line 34
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->refreshView()V

    .line 35
    return-void
.end method

.method public refreshView()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 62
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->webView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    .line 63
    .local v0, ws:Landroid/webkit/WebSettings;
    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setAllowFileAccess(Z)V

    .line 64
    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 65
    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    .line 66
    const-string v1, "utf-8"

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setDefaultTextEncodingName(Ljava/lang/String;)V

    .line 68
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->webView:Landroid/webkit/WebView;

    new-instance v2, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity$1;

    invoke-direct {v2, p0}, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity$1;-><init>(Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;)V

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 74
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->webView:Landroid/webkit/WebView;

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;->url:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 75
    return-void
.end method
